<div class="content">
<h1>文章列表</h1>
<%=render :partial =>"/admin/webs/search" %>
<p style="padding: 0 80px;text-align:right"><%= link_to '添加新文章', new_admin_web_path %></p>
<table class="table">
  <tr>
    <th>标题</th>
    <th>操作</th>
  </tr>
  
  <% @webs.each do |web| %>
    <tr>
      <td><%=h web.title %></td>
      <td><%= link_to '显示', admin_web_path(web) %>|
        <%= link_to '编辑', edit_admin_web_path(web) %>|
        <%= link_to '删除', admin_web_path(web), :confirm => 'Are you sure?', :method => :delete %>
  <%= link_to '查看内容', web_path(:id => to_seo(web.name)) ,{:popup => true} %>
</td>
    </tr>
  <% end %>
</table>

<p style="padding: 0 80px;text-align:right"><%= link_to '添加新文章', new_admin_web_path %></p>
<br />
</div>